POV-Ray : Newsgroups : povray.unofficial.patches : iso - ridged mf question : Re: iso - ridged mf question Server Time
1 Sep 2024 14:32:14 EDT (-0400)
  Re: iso - ridged mf question  
From: Marc-Hendrik Bremer
Date: 12 Mar 2001 13:57:19
Message: <3aad1c0f@news.povray.org>
Chris Huff schrieb in Nachricht ...
>In article <3aacfffc$1@news.povray.org>, "Tom Melly" 
><tom### [at] tomandlucouk> wrote:
>
>> I want a band of mountains on the horizon that drop to foothills and 
>> finally a plane as z approaches 0.
>> 
>> #declare MountFunc = function {"ridgedMF" <1,5,3,1/3,50>}
>> with
>> function{ y + (MountFunc(x*z,0,z)*5)}  // (note the x*z)
>
>Try: function {y - MountFunc(x,0,z)*5*min(0, z)}


Should be max(0,z), no? Else you would only get negative z.

Marc-Hendrik


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.